import {
  IsString,
  IsNotEmpty,
  IsNumber,
  IsOptional
} from 'class-validator';

export class CreatePhotoDto {
  @IsNotEmpty()
  @IsNumber()
  width: number = undefined;

  @IsNotEmpty()
  @IsNumber()
  height: number = undefined;

  @IsNotEmpty()
  @IsString()
  url: string = undefined;

  @IsOptional()
  @IsNumber()
  status?: string  = undefined;
}